package com.lelaohui.net.api;

import com.lelaohui.net.response.ResponseBean;

import java.util.Map;

import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;

/**
 * Created by T460p on 2017/3/11.
 */

public interface Api{

    @FormUrlEncoded
    @POST("/leLaoHuiVideoApp/{url}")
    Call<ResponseBean> postVideoFormUrlEncode(@Path("url") String url, @FieldMap Map<String, Object> map);

    @GET("/leLaoHuiVideoApp/{url}")
    Call<ResponseBean> getVideoFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);

    @FormUrlEncoded
    @POST("/leLaoHuiDataApp/{url}")
    Call<ResponseBean> postFormUrlEncode(@Path("url") String url, @FieldMap Map<String, Object> map);

    @GET("/leLaoHuiDataApp/{url}")
    Call<ResponseBean> getFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);

    @GET("/org/addressUtil/{url}")
    Call<ResponseBean> getAddressFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);

    @GET("/message/activityMessage/{url}")
    Call<ResponseBean> getMsgFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);

    @GET("/leLaoHuiDataApp/catering/inter/{url}")
    Call<ResponseBean> getfoodFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);


    @FormUrlEncoded
    @POST("/leLaoHuiDataApp/catering/inter/{url}")
    Call<ResponseBean> postFormUrlEncodeQueryApp(@Path("url") String url, @FieldMap Map<String, Object> map);

    @GET("/leLaoHuiDataApp/catering/inter/{url}")
    Call<ResponseBean> getFormUrlEncodeQueryApp(@Path("url") String url, @QueryMap Map<String, Object> map);



    @FormUrlEncoded
    @POST("/account/{url}")
    Call<ResponseBean> postAccFormUrlEncode(@Path("url") String url, @FieldMap Map<String, Object> map);

    @GET("/account/{url}")
    Call<ResponseBean> getAccFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);


    @FormUrlEncoded
    @POST("/leLaoHuiDataBombApp/{url}")
    Call<ResponseBean> postUserInfoFormUrlEncode(@Path("url") String url, @FieldMap Map<String, Object> map);

    @GET("/leLaoHuiDataBombApp/{url}")
    Call<ResponseBean> getUserInfoFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);

    @GET("/mobile/{url}")
    Call<ResponseBean> getSerKuncunEncodeNew(@Path("url") String url, @QueryMap Map<String, Object> map);

    @FormUrlEncoded
    @GET("/mobile/{url}")
    Call<ResponseBean> postSerKuncunEncodeNew(@Path("url") String url, @QueryMap Map<String, Object> map);


    @GET("/admin/{url}")
    Call<ResponseBean> getAdminEncodeNew(@Path("url") String url, @QueryMap Map<String, Object> map);

    @FormUrlEncoded
    @POST("/admin/{url}")
    Call<ResponseBean> postFormUrlEncodea(@Path("url") String url, @FieldMap Map<String, Object> map);


    @GET("/mobile/{url}")
    Call<ResponseBean> postSerInfoEncodeNew(@Path("url") String url, @QueryMap Map<String, Object> map);
    @GET("/entertainment/healthyAudio/{url}")
    Call<ResponseBean> getAudioFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);

    @GET("/entertainment/entertainmentAudio/{url}")
    Call<ResponseBean> getMusicFormUrlEncode(@Path("url") String url, @QueryMap Map<String, Object> map);

}
